\hypertarget{_net_common_8h}{\section{Net\-Common.\-h File Reference}
\label{_net_common_8h}\index{Net\-Common.\-h@{Net\-Common.\-h}}
}


Including necessary network header files for different platforms. Copyright (c) 2007 by.  


{\ttfamily \#include $<$iostream$>$}\\*
{\ttfamily \#include $<$set$>$}\\*
{\ttfamily \#include $<$string$>$}\\*
{\ttfamily \#include $<$vector$>$}\\*
{\ttfamily \#include $<$cstdio$>$}\\*
{\ttfamily \#include $<$cstdlib$>$}\\*
{\ttfamily \#include $<$ctime$>$}\\*
{\ttfamily \#include $<$cstring$>$}\\*
{\ttfamily \#include $<$limits$>$}\\*
{\ttfamily \#include $<$Winsock2.\-h$>$}\\*
{\ttfamily \#include $<$windows.\-h$>$}\\*
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classvs_1_1net_1_1_net_initializer}{vs\-::net\-::\-Net\-Initializer}
\begin{DoxyCompactList}\small\item\em Wrapper class for net lib initializing and cleanup. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{namespacevs_1_1net}{vs\-::net}
\begin{DoxyCompactList}\small\item\em Namespace for Network communication classes. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{_net_common_8h_ac7bef5d85e3dcd73eef56ad39ffc84a9}{\#define {\bfseries W\-I\-N32\-\_\-\-L\-E\-A\-N\-\_\-\-A\-N\-D\-\_\-\-M\-E\-A\-N}}\label{_net_common_8h_ac7bef5d85e3dcd73eef56ad39ffc84a9}

\item 
\hypertarget{_net_common_8h_a2eb6f9e0395b47b8d5e3eeae4fe0c116}{\#define \hyperlink{_net_common_8h_a2eb6f9e0395b47b8d5e3eeae4fe0c116}{I\-N\-L\-I\-N\-E}}\label{_net_common_8h_a2eb6f9e0395b47b8d5e3eeae4fe0c116}

\begin{DoxyCompactList}\small\item\em Define the I\-N\-L\-I\-N\-E macro. \end{DoxyCompactList}\item 
\hypertarget{_net_common_8h_a9c7f6d5331abb2692a876d5ee67474b7}{\#define {\bfseries close}~closesocket}\label{_net_common_8h_a9c7f6d5331abb2692a876d5ee67474b7}

\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\hypertarget{namespacevs_1_1net_a02afc27cc9fca9fa328d9e4a9f227432}{typedef int \hyperlink{namespacevs_1_1net_a02afc27cc9fca9fa328d9e4a9f227432}{vs\-::net\-::\-S\-O\-C\-K\-E\-T\-L\-E\-N\-\_\-\-T}}\label{namespacevs_1_1net_a02afc27cc9fca9fa328d9e4a9f227432}

\begin{DoxyCompactList}\small\item\em Define the socket length data type, it varies from platforms. When compiling, the macros need to be specified. \end{DoxyCompactList}\item 
\hypertarget{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{typedef S\-O\-C\-K\-E\-T \hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{vs\-::net\-::\-S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E}}\label{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}

\begin{DoxyCompactList}\small\item\em Define the socket handle in different platforms. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{namespacevs_1_1net_a6487cce6ff27d97b6f70ff15ac06f0ad}{\hyperlink{_net_common_8h_a2eb6f9e0395b47b8d5e3eeae4fe0c116}{I\-N\-L\-I\-N\-E} int \hyperlink{namespacevs_1_1net_a6487cce6ff27d97b6f70ff15ac06f0ad}{vs\-::net\-::\-Get\-Net\-Error} ()}\label{namespacevs_1_1net_a6487cce6ff27d97b6f70ff15ac06f0ad}

\begin{DoxyCompactList}\small\item\em Wrapper for the error information. \end{DoxyCompactList}\item 
\hypertarget{namespacevs_1_1net_afdcfc9ee66e86db5e5650e397f2b9b43}{\hyperlink{_net_common_8h_a2eb6f9e0395b47b8d5e3eeae4fe0c116}{I\-N\-L\-I\-N\-E} int \hyperlink{namespacevs_1_1net_afdcfc9ee66e86db5e5650e397f2b9b43}{vs\-::net\-::\-Startup\-Network} (int version)}\label{namespacevs_1_1net_afdcfc9ee66e86db5e5650e397f2b9b43}

\begin{DoxyCompactList}\small\item\em Call this function for initializing before using net lib. \end{DoxyCompactList}\item 
\hypertarget{namespacevs_1_1net_aa78b03ca2460dae1acf4a78f4728973e}{\hyperlink{_net_common_8h_a2eb6f9e0395b47b8d5e3eeae4fe0c116}{I\-N\-L\-I\-N\-E} int \hyperlink{namespacevs_1_1net_aa78b03ca2460dae1acf4a78f4728973e}{vs\-::net\-::\-Cleanup\-Network} ()}\label{namespacevs_1_1net_aa78b03ca2460dae1acf4a78f4728973e}

\begin{DoxyCompactList}\small\item\em Call this function to cleanup net lib. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{namespacevs_1_1net_a022e70e88d4dc482408183296dc49ab5}{const S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E \hyperlink{namespacevs_1_1net_a022e70e88d4dc482408183296dc49ab5}{vs\-::net\-::\-I\-N\-V\-A\-L\-I\-D\-\_\-\-S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} = I\-N\-V\-A\-L\-I\-D\-\_\-\-S\-O\-C\-K\-E\-T}\label{namespacevs_1_1net_a022e70e88d4dc482408183296dc49ab5}

\begin{DoxyCompactList}\small\item\em Define the invalid socket handle value. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Including necessary network header files for different platforms. Copyright (c) 2007 by. version 1.\-0 2007-\/11-\/20 \$ \begin{DoxyAuthor}{Author}
Zhao Jun \href{mailto:abitfree@gmail.com}{\tt abitfree@gmail.\-com} 
\end{DoxyAuthor}
